home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Focus Sets, FW_CFrame::PrivActivateFrame
- Sent: 8/5/96 8:44 AM
- Received: 8/5/96 9:01 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Did you try overridding FW_CFrame::RequestFocusSet and doing there what
- you are currently doing in your PrivActivateFrame override?
- FW_CFrame::RequestFocusSet is already virtual and non-priv.
-
- ----------------------------------------------------------
-
- >Hi again,
- >
- >I've got the best solution I can find to my focus set problem. Recall, my
- >frame has a dynamic focus set, like ODF Button, but must also allow access
- >to an embedded part. Further, my frame may lose selection focus to modal
- >dialog frames that it spawns, but needs to recover these focii when the
- >dialogs are dismissed.
- >
- >The best way I've found to do this is to make FW_CFrame::PrivActivateFrame
- >virtual and override it to update a data member which is returned by the
- >GetFocusSet function. I keep two such data members: fCurrentFocusSet and
- >fDesiredFocusSet. In my PrivActivateFrame override, I set fCurrentFocusSet
- >to fDesiredFocusSet, and in my FW_CFrame::GetFocusSet override, I return
- >fCurrentFocusSet. Everything stays in synch, and I think I'm approaching an
- >acceptable HI for the focus behavior.
- >
- >** Requests **
- >
- >1. Could all "Priv" members of framework level classes be made virtual with
- >the warning that if we developers exploit that, we're asking for trouble?
- >There is quite a lot of behavior in those methods that may need to be
- >overridden from time to time.
- >
- >2. Could there be a framework level "FW_CFocusManager" class which
- >abstracts the current focus behavior away from the event handling? It would
- >theoretically make it much easier to complicated control frames that
- >dynamically adjust their focus sets.
- >
- >Happy MacWorld!
- >
- >Brad
- >
- ><mailto: "Brad Hutchings" brad@hutchings-software.com>
- ><http://www.hutchings-software.com>
- >
- >Got OpenDoc? Got Cyberdog? Then beta-test Rapid-I Button! Email me for more
- >information...
- >
- >
-
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-
-